package com.easy.cms.material.dto;

import com.easy.cms.material.model.OrderItem;
import jakarta.annotation.Nonnull;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public class OrderCreateDTO {
    // 可根据实际需求添加字段
    @Valid
    private List<OrderItem> orderItems;
    @NotNull(message = "买家信息不能为空")
    private String buyerId;
    @NotNull(message = "卖家信息不能为空")
    private String sellerId;

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }

    public String getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(String buyerId) {
        this.buyerId = buyerId;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }
}